<template>
    <div id="page">
        <Editor @change="change"></Editor>
        <button @click="submit">提交</button>
        <div ref="showEssay"></div>
    </div>
</template>
<script>
export default {
    data() {
        return {
            essayContainer:''
        }
    },
    methods:{
        change(val){
            this.essayContainer = val;
        },
        
        submit(){
            this.$refs.showEssay.innerHTML = this.essayContainer
        }
    }
}
</script>
<style scoped>
#page{
    width: 60vw;
    margin: 0 auto;
    height: 500px;
}
</style>
